package oss

import (
	"fmt"

	"github.com/aliyun/aliyun-oss-go-sdk/oss"
)

//ossconf 阿里云oss配置
type ossconf struct {
	endpoint        string
	accessKeyID     string
	accessKeySecret string
}

//Client *oss.Client
var Client *oss.Client
var err error
var clientconf = ossconf{
	"oss-cn-shanghai.aliyuncs.com",
	"LTAI4G8MqR9WbHsizfr6w7QL",
	"MbuFUdSZTZmils1qoSpEFKwBQWmS7D",
}

func init() {
	Client, err = oss.New(clientconf.endpoint, clientconf.accessKeyID, clientconf.accessKeySecret)
	if err != nil {
		fmt.Println(err)
		return
	}
}
